package com.swdegao.iot.netty.mapper;

import org.apache.ibatis.annotations.Param;

import com.swdegao.iot.netty.entity.Terminals;

public interface TerminalsMapper {
    int deleteByPrimaryKey(@Param("id") Integer id);
    
    int deleteByIMEI(@Param("imei") String imei);

    int insert(Terminals terminal);

    int insertSelective(Terminals terminal);

    Terminals selectByPrimaryKey(@Param("id") Integer id);
    
    Terminals selectByIMEI(@Param("imei") String imei);

    int updateByPrimaryKeySelective(Terminals terminal);

    int updateByPrimaryKey(Terminals terminal);
    
    int updateTerminalOnlineStatus(Terminals terminal);
}